<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>System</title>
{include file='header.tpl' JS=$smarty.const.BAOGG_JS CSS=$smarty.const.BAOGG_CSS}  

</head>
 
<body>

<div id="north_panel"> 
<center><h2>Backend Management</h2></center>
</div>

<div id="center_panel"> 
<div  style="margin-top:20%;margin-left:50%;font-size:23px;" >
welcome to our site!
</div>
<div style="position:absolute;bottom:15px;margin-left:50%;">
	@All rights reserved, powered by beimuaihui
</div>

</div>

{literal}
<script type="text/javascript">
            (function(){
                index = 0;              
                
                addTab=function(item){
                	if(cenbterTabPanel.getItem(item.id)){
                		cenbterTabPanel.activate(item.id);
               			 Ext.getCmp('panel_' + item.id).el.dom.src=item.url;  //refresh page                		
                	}else{
                		
	                    cenbterTabPanel.add({
		                    
	                    	id:item.id,
	                        title: '<img src="'+item.icon+'" />&nbsp;'+item.text,
	                        iconCls: '',
	                        frame: true,
	                        layout: 'fit',
	                        items: [new Ext.ux.IFrameComponent({
	                            id: 'panel_' + item.id,
	                            url: item.url
	                        })],
	                        closable: true
	                    }).show();
	                 }
                }
                
              
                
                
                //center tabpanel
                var cenbterTabPanel = new Ext.TabPanel({
                	 tbar: [{/literal}{$menu}{literal},'->',{"xtype":"combo",
                		 "fields":["id","text"],
                		 //"id":"user_group_id",                         
                         "submitValue":false,
                         "hiddenName":"user_group_id",
                         "displayField":"text",
                         "valueField":"id",			
                         "store":{/literal}{$store_group},
                         "value":{$init_group}{literal},
				  		 "triggerAction":"all",				  		 				
						 "forceSelection":true,
						 "hideTrigger":false,
						 "listeners" :{							  
							  "select":function(self,record,index){								  
								  //console.info(record.get("field1"));
								  window.location.href="{/literal}{$smarty.const.BAOGG_BASE_URL}{literal}?group="+record.get("field1");
							  }
						 }
						 },'|',{
          				text : '{/literal}{$exit}{literal}'
          				   ,handler : function(o){window.location.href='{/literal}{$smarty.const.BAOGG_BASE_URL}{literal}system/user/login';}
          				}],
                    region: 'center',
                    activeTab: 0,
                    id:'centerPanel',
                    tabPosition: 'bottom',
		     "plugins": new Ext.ux.TabCloseMenu(),
                    items: [{
                        title: 'Welcome',
                        html: '',
                        contentEl: 'center_panel'
                    }]
                });
                
                Ext.onReady(function(){
               
                    new Ext.Viewport({
                        layout: 'border',
                        
                        items: [cenbterTabPanel]
                    });
                
                            
                });
            })()
        </script>
{/literal}
</body>
</html>
